void* consumer(void* arg) {
	    pthread_mutex_lock(&mutex);
	        while (!data_ready) { // 必须用while防假唤醒
			        pthread_cond_wait(&cond, &mutex);
				    }
		    // 消费数据
		         pthread_mutex_unlock(&mutex);
		             return NULL;
		             }
